package com.fitz.loadbalance;

import com.fitz.registry.InstanceInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.rmi.runtime.Log;

import java.util.List;
import java.util.Random;

/**
 * @author fitz 2020-5-19 17:23
 */

public class FirstLoadBalance extends AbstractLoadBalance {

    private static final Logger logger = LoggerFactory.getLogger(FirstLoadBalance.class);

    @Override
    public InstanceInfo loadBalance(List<InstanceInfo> instances) {
        logger.debug("FirstLoadBalance-------------->>>>>");
        return instances.get(0);
    }
}
